Xbasic

A5queueing::ManagerListQueues Method

Syntax

.ListQueues as A5Storage::CallResult (BYREF result as A5Queuing::ListResult)

Arguments

BYREF resultA5Queuing::ListResult

List of queues..

Returns

resultA5Storage::CallResult

Call result.

Description

List the existing Queues.

Discussion

ListQueues, if it succeeds, returns a ListResult object which contains the names of all the queues for the connection.

Example

dim qm as A5Queueing::Manager = null_value()

if A5Queueing::Manager::Open(qm,"Provider='RabbitMQ';Host='localhost';").success 
   dim lq as A5Queueing::ListResult
   if qm.ListQueues(lq).Success then
     ui_msg_box("Queues",lq.Dump())
   end if
end if
RabbitMQ requires a plugin if you want to list queues. You must run the command rabbitmq-plugins enable rabbitmq_management.